<?php
/**
 * Desc:
 * User: zdb
 * Date: 2024/11/4
 * Time: 12:12
 */


namespace app\api\controller\util;
use app\api\service\access\MenuService;
use app\BaseController;
use app\util\OptionUtil;
use app\util\ResponseUtil;


class SelectOption extends BaseController
{
    public function getBottomMenuList()
    {
        $serviceMenu = new MenuService();
        $list = $serviceMenu->getMenuSelectOption(3);
        return ResponseUtil::success($list);
    }

    /**
     * Desc: 单词词性下拉
     * Datetime: 2025/1/6 9:02 by zdb
     */
    public function getWordTypeOption()
    {
        $list = OptionUtil::getWordTypeOption();
        return ResponseUtil::success($list);
    }
}